package com.leanyuan.publi.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Building implements Serializable {

    private static final long serialVersionUID = 1L;

    public Building(String name) {
        this.name = name;
    }

    private Integer buildingId;

    private Integer adminId;

    private String name;

    public Building(Integer buildingId, String name, Integer area) {
        this.buildingId = buildingId;
        this.name = name;
        this.area = area;
    }

    private Integer area;

    private Date addtime;

    public Building(Integer buildingId, Integer adminId, String name, Integer area, Date addtime) {
        this.buildingId = buildingId;
        this.adminId = adminId;
        this.name = name;
        this.area = area;
        this.addtime = addtime;
    }

    @TableField(exist = false)
    private TAdmin admin;

    @TableLogic
    private String delete2;
}
